package com.goodving.guli.server;

import android.annotation.SuppressLint;
import android.os.Build.VERSION;

import com.goodving.guli.bt.model.LoginData;
import com.goodving.guli.model.ThirdLoginState;
import com.goodving.guli.view.C3657a;
import com.loopj.android.http.RequestParams;

import java.util.Locale;
import java.util.TimeZone;

import cn.com.smartdevices.bracelet.config.Config;

public class ClientDataConstants { // C1323f
    public static final String PARAM_BIND_ICON_URL = "icon_url"; // f6704A
    public static final String PARAM_BIND_GENDER = "gender"; // f6705B
    public static final String PARAM_BIND_HEIGHT = "height"; // f6706C
    public static final String PARAM_BIND_WEIGHT = "weight"; // f6707D
    public static final String PARAM_BIND_BIRTHDAY = "birthday"; // f6708E
    public static final String PARAM_BIND_DEVICEID = "deviceid"; // f6709F
    public static final String PARAM_BIND_PERSON_SIGNATURE = "person_signature"; // f6710G
    public static final String PARAM_BIND_PERSON_SH = "person_sh"; //f6711H
    public static final String PARAM_BIND_LOCATION = "location"; // f6712I
    public static final String PARAM_BIND_ICON_PATH = "icon_path"; // f6713J
    public static final String PARAM_BIND_DAY_SPORT_GOAL = "day_sport_goal"; // f6714K
    public static final String UID = "uid"; // f6715L
    public static final String PARAM_ACCESS_TOKEN = "access_token"; // f6716M
    public static final String PARAM_EXPIRESLN = "expiresIn"; // f6717N
    public static final String PARAM_MAC_TOKEN = "mac_token"; // f6718O
    public static final String PARAM_MIID = "miid";
    public static final String PARAM_MILIAO_NICK = "miliaoNick"; // f6720Q
    public static final String PARAM_MILIAO_ICON = "miliaoIcon"; // f6721R
    public static final String PARAM_MILIAO_ICON_320 = "miliaoIcon_320"; // PARAM_MILIAO_ICON
    public static final String PARAM_ALIAS_NICK = "aliasNick"; // f6723T
    public static final String PARAM_XIAOMI_USER_ID = "userId"; // f6724U
    public static final String PARAM_MILIAO_FRIENDS = "friends"; // f6725V
    public static final String PARAM_BIND_PERSON_ALARM_CLOCK = "alarm_clock"; // f6726W
    public static final String PARAM_MESSAGE = "message"; // f6727X
    public static final String PARAM_EMAIL = "email"; // f6728Y
    public static final String PARAM_MAC = "mac"; // f6729Z
    public static final String PARAM_DEVICE_TYPE = "device_type"; // f6730a
    public static final String aA = "behavior";
    public static final String aB = "tagTime";
    public static final String aC = "tag";
    public static final String aD = "md5";
    public static final String aE = "count";
    public static final String aF = "start_uid";
    public static final String aG = "limit";
    public static final String aH = "f_uid";
    public static final String aI = "from_date";
    public static final String aJ = "to_date";
    public static final String aK = "to_uid";
    public static final String aL = "search_uid";
    public static final String aM = "from_uid";
    public static final String aN = "status";
    public static final String aO = "offset";
    public static final String aP = "nick";
    public static final String aQ = "versioncode";
    public static final String aR = "third_app_uid";
    public static final String aS = "expires_time";
    public static final String aT = "expires_in";
    public static final String aU = "refresh_token";
    public static final String aV = "nick_name";
    public static final String aW = "unbind";
    public static final String aX = "refresh_token";
    public static final String aY = "imei";
    public static final String aZ = "type";
    public static final String aa = "devicetype";
    public static final String ab = "miui_version_code";
    public static final String ac = "miui_version_name";
    public static final String ad = "phone_brand";
    public static final String ae = "phone_model";
    public static final String af = "phone_system";
    public static final String ag = "fwversion";
    public static final String ah = "source";
    public static final String ai = "hr_fwversion";
    public static final String aj = "shoes_fwversion";
    public static final String ak = "softversion";
    public static final String al = "config";
    public static final String am = "age";
    public static final String an = "version";
    public static final String ao = "statistic_bracelet";
    public static final String ap = "statistic_app";
    public static final String aq = "log_file";
    public static final String ar = "log_file_name";
    public static final String as = "days";
    public static final String at = "count";
    public static final String au = "detail";
    public static final String av = "third_appid";
    public static final String aw = "record";
    public static final String ax = "time_type";
    public static final String ay = "date";
    public static final String az = "googleplay";
    public static final String PARAM_APPID = "appid"; // f6731b
    public static final String ba = "count";
    public static final String bb = "heart_rate";
    public static final String bc = "resolution";
    public static final String PARAM_CALLID = "callid"; //
    public static final String PARAM_SYS_VERSION = "v"; // f6733d
    public static final String PARAM_SYS_LANGUAGE = "lang"; // f6734e
    public static final String PARAM_SYS_USER_ID = "userid"; // f6735f
    public static final String PARAM_SYS_USER_SECURITY = "security"; // f6736g
    public static final String f6737h = "bd_sig";
    public static final String PARAM_SYS_USER_NAME = "username"; // f6738i
    public static final String f6739j = "timezone";
    public static final String f6740k = "channel";
    public static final String f6741l = "cv";
    public static final String f6742m = "device";
    public static final String f6743n = "country";
    public static final String f6744o = "city";
    public static final String f6745p = "deviceid";
    public static final String f6746q = "data_type";
    public static final String PARAM_UPLOAD_DATA_LEN = "data_len"; // f6747r
    public static final String PARAM_UPLOAD_DATA = "data_json"; // f6748s
    public static final String PARAM_UPLOAD_DATA_UUID = "uuid"; // f6749t
    public static final String f6750u = "track_id";
    public static final String f6751v = "from_date";
    public static final String f6752w = "to_date";
    public static final String f6753x = "iterate";
    public static final String f6754y = "nick_name";
    public static final String f6755z = "icon";

    public static final String JSONDATA = "json";

    @SuppressLint({"NewApi"})
    public static RequestParams m11558a(LoginData loginData) {
        if (loginData == null) {
            throw new IllegalArgumentException("LoginData is null");
        }
        RequestParams requestParams = new RequestParams();
        Config h = Config.m8876h();
        requestParams.put(PARAM_SYS_USER_ID, C3657a.f18328f + loginData.uid);
        requestParams.put(PARAM_SYS_USER_SECURITY, loginData.security);
        String str = PARAM_SYS_VERSION;
        h.getClass();
        requestParams.put(str, "1.0");
        requestParams.put(PARAM_APPID, C3657a.f18328f + h.f4192b.f4237a);
        requestParams.put(PARAM_CALLID, C3657a.f18328f + System.currentTimeMillis());
        requestParams.put(PARAM_SYS_LANGUAGE, Locale.getDefault().getLanguage());
        requestParams.put(f6743n, Locale.getDefault().getCountry());
        requestParams.put(f6739j, TimeZone.getDefault().getID());
        requestParams.put(f6740k, Config.m8870c());
        requestParams.put(f6742m, "android_" + VERSION.SDK_INT);
        requestParams.put(PARAM_DEVICE_TYPE, Config.m8872d());
        requestParams.put(f6741l, Config.m8865b() + "_" + Config.m8858a());
        return requestParams;
    }

    @SuppressLint({"NewApi"})
    public static RequestParams m11559a(String str, LoginData loginData, ThirdLoginState thirdLoginState) {
        if (loginData == null || thirdLoginState == null) {
            throw new IllegalArgumentException("LoginData and ThirdLoginState object is null");
        }
        RequestParams requestParams = new RequestParams();
        Config h = Config.m8876h();
        requestParams.put(PARAM_SYS_USER_ID, C3657a.f18328f + loginData.uid);
        requestParams.put(PARAM_SYS_USER_SECURITY, loginData.security);
        String str2 = PARAM_SYS_VERSION;
        h.getClass();
        requestParams.put(str2, "1.0");
        requestParams.put(PARAM_APPID, C3657a.f18328f + h.f4192b.f4237a);
        requestParams.put(PARAM_CALLID, C3657a.f18328f + System.currentTimeMillis());
        requestParams.put(PARAM_SYS_LANGUAGE, Locale.getDefault().getLanguage());
        requestParams.put(f6743n, Locale.getDefault().getCountry());
        requestParams.put(f6739j, TimeZone.getDefault().getID());
        requestParams.put(f6740k, Config.m8870c());
        requestParams.put(f6742m, "android_" + VERSION.SDK_INT);
        requestParams.put(PARAM_DEVICE_TYPE, Config.m8872d());
        requestParams.put(f6741l, Config.m8865b() + "_" + Config.m8858a());
        requestParams.put(av, str);
        requestParams.put(aR, thirdLoginState.uid);
        requestParams.put(PARAM_ACCESS_TOKEN, thirdLoginState.accessToken);
        requestParams.put(aT, String.valueOf(thirdLoginState.expiresIn));
        requestParams.put(aX, thirdLoginState.refreshToken);
        requestParams.put(f6754y, thirdLoginState.nickName);
        return requestParams;
    }
}
